import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  renewalMemberModel: boolean;
  joinMemberModel: boolean;
  blacklistModel: boolean;
  banner?: [];
  communityName?: string;
  communityCode?: string;
  unReadNum?: number;
  ascList: [];
  activeList: [];
  goodShops: [];
  shopList: [];
  shopLists: [];
  pageNum?: number;
  totalPages?: number;
  shaungchongLength: string;
  contentList: [];
  memberCardType: 'noMember' | 'lanjing' | 'chijing' | 'shuangchong';
  selectMemberCard: 'lanjing' | 'chijing' | 'shuangchong';
  memberInfo?: MemberInfo;
  lanjingLength: number;
  chijingLength: number;
  isAquamarineMember: boolean;
  isCrystalMember: boolean;
  // 是否展示每日抽奖
  showDayLotteryButton: boolean;
  checkTab: number;
  doubleMemModel:boolean;
}
export interface MemberInfo {
  rankBadgeImg: string;
  aquamarineMembershipCardNumber: string;
  areaId: null | string;
  birthDay: null | string;
  cityId: null | string;
  contactName: string;
  contactPhone: string;
  crystalMembershipCardNumber: string;
  customerAccount: string;
  customerAddress: null | string;
  customerDetailId: string;
  customerId: string;
  customerLevelName: null | string;
  customerName: string;
  dualMembershipCardNumber: string;
  employeeName: string;
  endTime: string;
  enterpriseInfo: null | string;
  gender: null | string;
  headImg: null | string;
  idCard: null | string;
  isAquamarineMember: true;
  isCrystalMember: true;
  isEnterpriseCustomer: false;
  memberDays: number;
  provinceId: null | string;
  saveMoney: null | string;
  streetId: null | string;
}
export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;

  [name: string]: any;
};

//默认是全部的属性,可以自定义
export type IProps = IAllReducerProps & ActionType;

export type ITopProps = {};
export type ITopState = {};

export type ICarouselProps = {};
export type ICarouselState = {};

export type INoticeProps = {};
export type INoticeState = {
  noticeList?: [];
};

export type IShopProps = {};
export type IShopState = {};

export type ICommunityProps = {};
export type ICommunityState = {
  activeList: [];
};

export type IHouseMoneyProps = {};
export type IHouseMoneyState = {};

export type IWebViewProps = {};
export type IWebViewState = {
  channel: string;
  phone: string;
  sign: string;
};

export type IGovProps = {};
export type IGovState = {};

export type IBankingProps = {};
export type IBankingState = {};

export type IToolsBoxProps = {};
export type IToolsBoxState = {};

export type IHomepageNavProps = {};
export type IHomepageNavState = {};

export type IProjectProps = {};
export type IProjectState = {};

//create by moon https://github.com/creasy2010/moon
